<%
  submit_label = "Update"
  submit_label = "Create" if @user_group.new_record?
-%>

<%= error_messages_for :user_group %>

<div class="form">
  <% form_for(@user_group) do |f| %>
    <%= render :partial => "data" %>
    <div class="actions"> <%= f.submit submit_label %> </div>
  <% end %>
</div>
